package com.example.demo.test;


import cn.hutool.core.util.StrUtil;

/**
 * @description hutool工具测试
 *
 * @author lilinchun
 * @date 2023/09/14
 */
public class demo5 {

    private static final String htmlTemplate = "<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>#{htmlTitle}</title></head><body><div> <h1>#{htmlTitle}</h1> #{messageHtml}</div></body></html>\n";

    public static void main(String[] args) {
        String s = StrUtil.blankToDefault("", "979");
        System.out.println(s);
        String msg = htmlTemplate.replace("#{htmlTitle}", "测试标题-------------------------");
        msg = msg.replace("#{messageHtml}", "测试内容------------------");
        System.out.println(msg);
    }
}
